<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="content-style-type" content="text/css"/>
    <meta name="keywords" content="51新炫舞,51新炫舞 新炫舞 宝贝评选 "/>
    <meta name="description" content="51新炫舞 新炫舞 新炫舞 宝贝评选 领导舞蹈游戏新潮流，最酷最炫的舞蹈游戏。"/>
    <title>新炫舞 宝贝评选-51新炫舞官方活动专题</title>
    <link type="text/css" rel="stylesheet" href="style/topbar.css" media="all"/>
    <link type="text/css" rel="stylesheet" href="style/shadeLayer.css" media="all"/>
    <link type="text/css" rel="stylesheet" href="style/sign.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="style/lytebox.css" media="screen"/>
</head>


<body>
<div id="wrapper">
    <!-- header begin -->
    <div id="header01">
        <h1 title="51新炫舞官网"><a href="http://www.xx5.com">51新炫舞官网</a></h1>

        <p class="p01" title="新炫舞 宝贝评选">新炫舞 宝贝评选</p>

        <p class="p02" title="活动时间:2016年02月14日-2016年03月14日">活动时间:2016年02月14日-2016年03月14日</p>
    </div>
    <div id="header02">
        <ul class="cFix">
            <li class="postPic">报名（上传图片，填写资料）</li>
            <li class="fillInfo">投票（投他一票，为他拉票）</li>
            <li class="PK">评选（根据排名发放奖励）</li>
        </ul>
    </div>
    <!-- header end -->

    <!-- main begin -->
    <div id="main">
        <div class="box1">
            <ul class="cFix">
                <li><a class="index" title="活动首页" href="index.php">活动首页</a></li>
                <li><a class="prize" title="活动奖励" href="index.php?a=prize">活动奖励</a></li>
                <li><a class="rank" title="炫舞宝贝排名" href="index.php?a=ranking">炫舞宝贝排名</a></li>
                <li><a class="sign" title="我要报名" href="index.php?a=sign">我要报名</a></li>
                <li><a class="info" title="个人信息" href="index.php?a=userinfo">个人信息</a></li>
                <li><a class="rules" title="活动细则" href="index.php?a=rule">活动细则</a></li>
            </ul>
        </div>

        <div class="box2">
            <div class="content01">
                <h2>报名要求</h2>

                <p> 1、51新炫舞游戏用户，任意大区角色等级≥30级，<br/>
                    2、每个账号只能报名一次，不能重复报名； <br/>
                    3、报名需上传游戏内“个人资料-游戏信息”截图1张，自己的生活照片两张。 <br/>
                    4、不能含色情、暴力、低俗等内容，上传的照片有2次审核机会，都未通过将无法再报名。
                    5、玩家参赛照片，51新炫舞拥有使用权。
                </p>
                <?php
                //没有登录，显示登录的按钮
                if(empty($_SESSION['LoginUser'])){
                    ?>
                    <p class="loginbtn" title="我要登录"><a href="javascript:DMZ.expand.shadeLayer.init('loginform');">我要登录GO</a>
                    </p>';
                    <?php
                }
                ?>
            </div>
            <?php
            //if($f == 2){//userinfo已经报名，做相应提示
            //    echo '<div class="enrollinfo2">';
            //    echo $html;
            //    echo '</div>';
            //}else{
            ////没有记录，还没有报名，用户进行信息填写
            ////userinfo中没有用户信息，才有用户信息报名，填写报名信息
            //?>
            <div class="enrollinfo">
                <form class="form01" action="index.php?a=resave_sign" method="post" enctype="multipart/form-data">
                    <p class="notice"><span class="s1"><strong>填写参赛信息</strong>（填写前需先登陆）：</span>
                        <br/>
                        当前帐号:<?php echo empty($_SESSION['LoginUser']) ? '' : $_SESSION['LoginUser']; ?></p>
                    <dl class="commDl clearFix">
                        <dt>真实姓名:</dt>
                        <dd>
                            <input type="text" name="real_name" value="<?php echo $info['real_name']?>" disabled="true"/>
                        </dd>
                        <br/>
                        <dt>年&nbsp;&nbsp;龄:</dt>
                        <dd>
                            <input type="text" name="age" value="<?php echo $info['age']?>" disabled="true"/>
                        </dd>
                        <br/>
                        <dt>昵&nbsp;&nbsp;称:</dt>
                        <dd>
                            <input type="text" name="nickName"
                                   value="<?php echo $info['role_name']?>" disabled="true"
                            />
                        </dd>
                        <br/>
                        <dt>所在大区:</dt>
                        <dd>
                            <input type="text" name="gameZone"
                                   value="<?php echo $zone_name ?>" disabled="true"
                            />
                        </dd>
                        <br/>
                        <dt>游戏个人资料截图:</dt>
                        <dd>
                            <p class="uploadbox">
                                <input id="f_file_1" class="f_file">
                                <input type="button" value="上传照片" class="cp">
                                <input name="pic1" type="file" id="" class="ifile" size="60"
                                       onchange="f_file_1.value=this.value" hidefocus>
                                <span>（支持jpg、png、gif格式，照片大小不得超过150kb，建议上传500x500等比像素）</span></p>
                        </dd>
                        <br/>
                        <dt>生活照一:</dt>
                        <dd>
                            <p class="uploadbox">
                                <input id="f_file_2" class="f_file">
                                <input type="button" value="上传照片" class="cp">
                                <input name="pic2" type="file" id="" class="ifile" size="60"
                                       onchange="f_file_2.value=this.value" hidefocus>
                                <span>（支持jpg、png、gif格式，照片大小不得超过150kb，建议上传500x500等比像素）</span></p>
                        </dd>
                        <br/>
                        <dt>生活照二:</dt>
                        <dd>
                            <p class="uploadbox">
                                <input id="f_file_3" class="f_file">
                                <input type="button" value="上传照片" class="cp">
                                <input name="pic3" type="file" id="" class="ifile" size="60"
                                       onchange="f_file_3.value=this.value" hidefocus>
                                <span>（支持jpg、png、gif格式，照片大小不得超过150kb，建议上传500x500等比像素）</span></p>
                        </dd>
                        <br/>
                        <dt>QQ号码:</dt>
                        <dd>
                            <input type="text" name="qq" value="<?php echo $info['qq']?>" disabled="true"/>
                            <span>（请勿设置拒绝任何人加入）</span></dd>
                        <br/>
                        <dt>爱情小故事:</dt>
                        <dd>
                            <span>（仅限50个字，另填写的内容为英文字母等，不给予通过）</span><br/>
                            <textarea disabled="true" name="brand" cols="5" rows="5" onfocus="this.value='';"><?php echo $info['brand']?></textarea>
                        </dd>
                        <br/><br/>
                    </dl>
                    <p class="a01">
                        <?php if(3 == $f): ?>
                            <input type="button" name="" value="确认提交"
                                   onclick="DMZ.expand.shadeLayer.init('loginform');"/>
                        <?php else: ?>
                            <input type="button" name="" value="确认提交" onclick="check_input(1);"/>
                        <?php endif; ?>
                    </p>

                    <p class="p01">友情提示：所有资料提交后，都不可修改。</p>

                </form>
                <?php //} ?>
            </div>
        </div>

    </div>

    <!--main end-->
    <div id="footer">
        <div id="copyright">
            <ul>
                <li class="w1"><a target="_blank" title="关于游戏"
                                  href="http://www.xx5.com/diypage-about_game.html">关于游戏</a></li>
                <li class="w2"><a href="http://www.xx5.com/guide/guide.htm" title="新手指南" target="_blank">新手指南</a></li>
                <li class="w3"><a href="http://www.xx5.com/jiazhang" title="家长监控" target="_blank">家长监控</a></li>
                <li class="w4"><a title="客服中心"
                                  onclick="javascript:window.open('http://b.qq.com/webc.htm?new=0&amp;sid=800082051&amp;eid=2188z8p8p8p8z8K8p8R8q&amp;o=&amp;q=7&amp;ref='+document.location, '_blank', 'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');"
                                  href="javascript:void(0);">客服中心</a></li>
            </ul>
            <div class="xkz"><a title="网络文化经营许可证号（文网文号）：文网文[2008]241号" target="_blank"
                                href="http://static.51img1.com/game/images/c_game_www.jpg">网络文化经营许可证号（文网文号）：文网文[2008]241号</a>
            </div>
        </div>
        <!--id:copyright-->
    </div>
    <!--id:footer-->
</div>
<!--id:wrapper-->

<div id="scrollQQ"><span
        onclick="javascript:window.open('http://b.qq.com/webc.htm?new=0&sid=800002116&eid=2188z8p8p8p8p8K8q8q8x&o=&q=7&ref='+document.location, '_blank', 'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');"></span>

    <p>时间：24小时服务 <br/>
        企业QQ：800082051</p>
</div>


<!--alertID-->
<!--分享-->
<div class="popupbox " id="alertShare" style="display:none;">
    <div class="warning">
        <div class="tip">
            <div class="tiptop tit_alert">
                <div class="tit_sfconf" id="alertTips">分享提示</div>
                <a href="javascript:DMZ.expand.shadeLayer.closed();" class="btn-close"></a></div>
            <div class="tipbox tipalert" id="alertContent">
                <form method="post" name="mytelForm" onsubmit="checktelForm();">
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td><!--系统提示-->
                                <div class="alertInfo">
                                    <p>想让更多人知道谁是你的夏日梦之星吗？那就赶紧分享到微博为他们拉票吧~</p>

                                    <div class="share"><a target="_blank" class="s1" href="#">分享到新浪微博</a>
                                        <a target="_blank" class="s2" href="#">分享到腾讯微博</a></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<!--分享-->
<!-- 送玫瑰投票的弹窗信息 -->
<div class="popupbox " id="alertBuy" style="display:none;">
    <div class="warning">
        <div class="tip">
            <div class="tiptop tit_alert">
                <div class="tit_sfconf" id="alertTips">赠送玫瑰</div>
                <a href="javascript:DMZ.expand.shadeLayer.closed();" class="btn-close"></a></div>
            <div class="tipbox tipalert" id="alertContent">
                <form method="post" name="mytelForm" onsubmit="checktelForm();">
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td><!--系统提示-->
                                <div class="alertInfo alertBuy" style="display: ">
                                    <p class="p0t"><span>亲，您共购买&nbsp;</span><input type="text" value="" id="buycount"
                                                                                   onkeyup="changecount(this);"
                                                                                   maxlength="5" class="i01"/><span>&nbsp;朵玫瑰</span>
                                    </p>

                                    <p class="p0t"><span>需扣除游戏内&nbsp;<strong><font color="#f00"
                                                                                   id="usemoney">0</font></strong>&nbsp;51点，当前剩余&nbsp;<strong><font
                                                    color="#f00" id="money">0</font></strong>&nbsp;51点</span></p>

                                    <div class="btnbox"><a href="javascript:buyApple();" class="btn_yz">确 认</a></div>
                                    <input type="hidden" value="0" id="userid">
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!--warning-->
</div>
<!-- 送苹果投票的弹窗信息 -->

<!-- 提示信息 -->
<div class="popupbox " id="alertID" style="display:none;">
    <div class="warning">
        <div class="tip">
            <div class="tiptop tit_alert">
                <div class="tit_sfconf" id="alertTips">提示</div>
                <a href="javascript:DMZ.expand.shadeLayer.closed();" class="btn-close"></a></div>
            <div class="tipbox tipalert" id="alertContent">
                <form method="post" name="mytelForm" onsubmit="checktelForm();">
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td><!--系统提示-->
                                <div class="alertInfo" style="display: ">
                                    <p class="p0t" id="alert_msg"></p>

                                    <div class="btnbox"><a href="javascript:DMZ.expand.shadeLayer.closed();"
                                                           class="btn_yz">确 认</a></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!--warning-->
</div>
<!-- 提示信息 -->
<!--alertID-->


<!-- 登录 -->
<?php
echo AlertLogin();
echo AlertSelectZone();
?>
<!--登录-->

<script type="text/javascript" src="http://static.51img1.com/game/js/jquery.js"></script>
<script type="text/javascript" src="http://static.51img1.com/game/js/extra.js"></script>
<script type="text/javascript" src="http://static.51img1.com/game/common/topbar/js/topbar.js"></script>
<script type="text/javascript" src="http://static.51img1.com/game/common/topbar/js/actTopbar-init.js"></script>
<script type="text/javascript" src="js/function.js"></script>
<script type="text/javascript" src="js/page_v7_ajax.js"></script>
<script type="text/javascript" src="js/xrmzx.js"></script>
<script type="text/javascript" src="js/lytebox.js"></script>
<script type="text/javascript">


    $(document).ready(function(){
        scrollBox();
        //autoHoverScroll();
        AutoTaskScroll('#rank', 3000, 800);
    })
    //图片过大的js——alert
    <?php
    if(!empty($_GET['picMsg'])){
    //echo $_GET['picMsg'];
    $picMsg = $_GET['picMsg'];
?>
    alert('<?php echo $picMsg;?>');

    <?php
    }
    ?>

    $('#flaBox1').html(DMZ.expand.showFlashObject('fla_object', '<?php echo PIC_URL,'ad_show.swf',PROJECT_VERSION;?>', '100%', '100%', '', '', '', ''));

    var user = '<?php echo empty($_SESSION['LoginUser']) || empty($_SESSION['UIN']) || empty($_SESSION[DOMAIN_ACT_ZONEID_KEY]) ? '' : $_SESSION['LoginUser']; ?>';
    var logout = "index.php?a=logout&jumpto=http%3A%2F%2Fact.xx5.com%2F2016%2Fbbpx2016";
    var jsondata = {
        u  : user,
        url: {
            login: '',
            reg  : 'http://passport.xx5.com/register/',
            exit : logout
        },
        fn : function(){
        }
    };
    miniNav.userState(jsondata);
    var uState = $('.miniNav-ustate li');
    var signin = uState.eq(0);
    var signout = uState.eq(1);
    if(user){
        signin.hide();
        signout.show().children('span').text(user);
        signout.children('a[rel=miniNav-exit]').attr('target', '_self');
    }else{
        signout.hide();
        signin.show();
        signin.children('a[rel=miniNav-login]').attr('href', 'javascript:void(0);').attr('target', '_self').click(function(){
            DMZ.expand.shadeLayer.init('loginform');
            $('#username2').focus();
        });
    }

    //function xpg
    function check_input(type){
        if(1 == type){
            var real_name = $("input[name='real_name']").val();
            if(!/^[\u2E80-\u9FFF]{2,6}$/.test(real_name)){
                alert('请填写正确姓名');
                return false;
            }
            var age = $("input[name='age']").val();
            if(!/^[1-9]\d{0,1}$/.test(age)){
                alert('请填写正确年龄');
                return false;
            }
            if(age < 16){
                alert('年龄不能小于16岁');
                return false;
            }
            var pic1 = $.trim($("input[name='pic1']").val());
            if('' == pic1){
                alert('请上传一张游戏照');
                return false;
            }
            var pic2 = $.trim($("input[name='pic2']").val());
            if('' == pic2){
                alert('请上传生活照一');
                return false;
            }
            var pic3 = $.trim($("input[name='pic3']").val());
            if('' == pic3){
                alert('请上传生活照二');
                return false;
            }

            var qq = $("input[name='qq']").val();
            if(!/[1-9]\d{5,13}/.test(qq)){
                alert('请填写正确QQ');
                return false;
            }
            var brand = $.trim($("textarea[name='brand']").val());
            if('' == brand || '（限50个字）' == brand){
                alert('请填写正确参赛宣言');
                return false;
            }
            if(brand.length > 50){
                alert('限50个字');
                return false;
            }
        }else{
            var pic1 = $.trim($("input[name='pic1']").val());
            if('' == pic1){
                alert('请上传照片');
                return false;
            }
        }
        $(".form01").submit();
    }

    function changecount(obj){
        $('#buyTips').remove();
        var pev_value = $(obj).val();
        var t_value = pev_value.replace(/[^\d]/g, '');
        t_value = Number(t_value);
        $(obj).val(t_value);
        var useMoney = ($(obj).val()) * 2;
        var oldMoney = $('#money').html();
        if(isNaN(t_value) || t_value < null){
            $("#usemoney").html(0);
            return;
        }else if(useMoney > oldMoney){
            var content = '<p class="tips" id="buyTips"><span class="fontW">亲~您的51点不足!</span></p>';
            $(content).insertAfter('#buymsg');
            $("#usemoney").html(useMoney);
            return;
        }else{
            $("#usemoney").html(useMoney);
        }
    }

    //选区的弹框中，调用js函数selectZone(选择的大区号)，传给php的saveSelectZone存储登录信息
    function selectZone(k){
        $.post('./index.php?a=saveSelectZone', {'k': k}, function(data){
            if(data.success == 1){
                location.href = "<?php echo DOMAIN_URL?>";
            }else if(data.success == 0){
                DMZ.expand.shadeLayer.init('loginform');
            }else{
                alert(data.msg);
            }

        }, 'json');
    }
    <?php
    //判断已经有SESSION['uin']   &&   没有SESSION['zoneid']  弹窗选大区
    if( empty($_SESSION[DOMAIN_ACT_ZONEID_KEY]) && isset($_SESSION[__CORE_USER_UIN__]) ){
        echo 'DMZ.expand.shadeLayer.init(\'alertSelectZone\')';
    }
    ?>
</script>
</body>
</html>

